<!DOCTYPE html>
	<html>
	<head>
			<meta charset="utf-8">
			<meta http-equiv="X-UA-Compatible" content="IE=edge">
			<title>html</title>
			<link rel="stylesheet" href="">
			<script src="js/jquery-1.9.1.min.js"></script>
			<script src="js/underscore-min.js"></script>
			<script src="js/backbone-min.js"></script>
			<script type="text/javascript" src="js/main.js"></script>
			<style type="text/css">
				#container {
    width: 300px;
    margin: 0 auto;
    position: relative;
}
.menu-dropdown {
    list-style:none;    
    position: relative;
    border: 1px solid #d4e2f3;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;    
    padding: 0;
}
.menu-dropdown li {
    border-bottom: 1px solid #ccc;
}
.menu-dropdown li a {
    display: block;
    text-decoration: none;
    padding: 5px 10px;    
    color: #08c;
    font-size: 12px;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.menu-dropdown li:last-child {
    border-bottom: 0;
}

.menu-dropdown:before, .menu-dropdown:after {
    content: '';
    width: 0px;
    height: 0px;
}
.menu-dropdown:before {
    border-bottom: 11px solid #d4e2f3;
    border-right: 11px solid transparent;
    border-left: 11px solid transparent;
    position: absolute;
    top: -11px;
    left: 45%;
    z-index: 1;
}
.menu-dropdown:after {
    border-bottom: 10px solid rgba(255, 255, 255, 0.9);
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    position: absolute;
    top: -10px;
    left: 45.5%;
    z-index: 2;
}
.login{
	background: #5C9761;
	width: 100%;
	height: 100px;
	position: relative;
}
.text-input{
	height: 70px;
	width: 200px;
	margin-left: 31px;
	position: absolute;
	top: 11px;
	vertical-align: middle;
	padding-left: 10px;
	display: none;
}
.button{
	height: 80px;
	background: url(search.jpg) no-repeat;
	width: 80px;
	vertical-align: middle;
	position: absolute;
	left: 250px;
	top: 10px;
}
#search { float: right; margin-top: 9px; width: 250px;}
.search { padding: 5px 0;width:230px; height:30px; position: relative; left: 10px;float:left;line-height: 22px;}
.search input {  position:absolute;
        width:0px;
        float:Left;
        margin-left:210px;
        -webkit-transition: all 1s ease-in-out;
        -moz-transition: all 1s ease-in-out;
        -o-transition: all 1s ease-in-out;
        transition: all 1s ease-in-out;
         background: #000; height:30px; line-height: 18px; font-style: italic; padding:0 2px 0 2px; font-family: arial;  font-size: 15px;color: #fff; outline: none; -webkit-appearance: none; border-radius: 0; border-width:0; }
.search:hover input ,  .search input:focus { width: 200px; margin-left: 0px; }
       
       .search input:focus { background: #000; color: #999; }
.srch_btn{  font-family: arial;  height:30px; width:30px; background: #ff0000 url(images/mag_glass.png) no-repeat center center;position: absolute;right:0;top:5px; cursor: url(images/cursor2.png) 5 5, auto;}
			</style>
	</head>
	<body>
		<header>
		</header>
		<div class="content">
			<div id="container">
			    <ul class="menu-dropdown">
			        <li><a href="#">Đăng nhâp</a></li>
			        <li><a href="#">Đăng ký</a></li>
			    </ul>
			</div>
			
			<div class="login">
				<div>
					<input type="text" class="text-input" placeholder="Tìm kiếm ..." />
					<input type="button" class="button" >
				</div>
			</div>
			<script type="text/javascript">
				$('.button').click(function(event) {
					$('.text-input').css({ display: "block", opacity: 0 }).animate({ opacity: "show" }, "fast");
				});
			</script>
			<div class="search">
				<form action="" name="SearchForm" method="get">
				<input type="text" name="s" maxlength="64" id="SearchForm" value="Search" />
				</form>
				<div class="srch_btn" onclick="SearchForm.submit()">GO!</div></div>
		</div>
		<div id="slideout">
		    <div id="slidecontent">
		        Yar, there be dragonns herre!
		    </div>
		    <div id="clickme">
		    </div>
		</div>
		<style type="text/css">
			#slideout {
    background: #666;
    position: relative;
    width: 300px;
    height: 80px;
    left:-280px;
    margin-left: 10px;
    margin-top: 30px;
}
    
#clickme {
    float: right;
    height: 20px;
    width: 20px;
    background: #ff0000;
    /*display: none;*/
}

#slidecontent {
    float:left;
}

		</style>
		<script type="text/javascript">
		$("#clickme").click(function(event) {
			$("#slideout").toggle(function () {
		    	console.log($(this).parent());
		        $(this).animate({left:'0px'}, {queue: false, duration: 500});
		    }, function () {
		        $(this).animate({left:'-280px'}, {queue: false, duration: 500});
		    });
		});	
// 			$(function () {
//     $("#clickme").toggle(function () {
//     	console.log($(this).parent());
//         $(this).parent().animate({left:'0px'}, {queue: false, duration: 500});
//     }, function () {
//         $(this).parent().animate({left:'-280px'}, {queue: false, duration: 500});
//     });
// });
		</script>
		<script type="text/javascript">
		</script>
	</body>
</html>